package OnJava8.steams;

import java.util.Random;

/**
 * @Auther DRevelation
 * @Date 2020-05-25 上午 11:26
 * @Desc
 */
public class Randoms {
    public static void main(String[] args) {
        new Random().ints(5, 20)
                .distinct().limit(7).sorted().forEach(System.out::println);
    }
}
